package com.lz.ccjdemo.http;

import java.util.HashMap;
import java.util.List;

public class HttpConfig {

    private static HttpConfig config;
    private String token="";
    private String host="http://testapi.jmxq.xyz/";
    private HashMap<String,String> headers;

    public HttpConfig() {

    }


    public static HttpConfig getConfig() {
        if (config == null) {
            config = new HttpConfig();
        }
        return config;
    }

    public static void setConfig(HttpConfig config) {
        HttpConfig.config = config;
    }

    public String getToken() {
        return token;
    }

    public HttpConfig setToken(String token) {
        this.token = token;
        return this;
    }

    public String getHost() {
        return host;
    }

    public HttpConfig setHost(String host) {
        this.host = host;
        return this;
    }

    public HashMap<String, String> getHeaders() {
        return headers;
    }

    public HttpConfig setHeaders(HashMap<String, String> headers) {
        this.headers = headers;
        return this;
    }
}
